package com.xuqi;

import com.xuqi.Gesture.GestureMain;
import com.xuqi.Mail.MailMainInput;
import com.xuqi.menucontrol.MenuControlIF;
import com.xuqi.menucontrol.SCR_MenuBase;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DemoActivity extends SCR_MenuBase implements OnClickListener{
	/** Called when the activity is first created. */
	private Button btGesture = null;
	private Button btMail = null;

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.demoactivity);
		
		btGesture = (Button) findViewById(R.id.button1);
		btMail = (Button) findViewById(R.id.button2);
		
		btGesture.setOnClickListener(this);
		btMail.setOnClickListener(this);
	}

	@Override
	public void onClick(View v)
	{
		if(v == btGesture)
		{
			MenuControlIF.changeWinscape(GestureMain.class);
		}
		else if(v == btMail)
		{
			MenuControlIF.changeWinscape(MailMainInput.class);
		}
	}
}